Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function for file attachments #40

Merged
merged 15 commits into from
Dec 15, 2023
Merged

Conversation

JohntheLi
Copy link
Collaborator

support attaching files to pending messages.

If an httpx session is not passed in, the default timeout of the created session is currently 5 seconds, which is too short for long LLM requests.
Make the default 120 seconds instead. User can pass in their own httpx session if they wish to set a custom timeout.

Also, make the error log print repr(e) as httpx.ReadTimeout did not have a message body. So at least the exception type will be printed.
increase default timeout and allow passing httpx session into get_bot_response()
to match with the documentation, Poe generated suggested replies should be disabled by default.
function to call the new file attachment endpoint.
function to call the new file attachment endpoint.
@anmolsingh95 anmolsingh95 merged commit 55ae078 into poe-platform:main Dec 15, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants